﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Event_SG_EWDT
{
    public partial class Notifications : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Member"] == null)
            {
                Response.Redirect("~/registration.aspx?redirecterror=1");
            }
            
           // this.LoadComplete += new EventHandler(Notifications_LoadComplete);
            this.PreRenderComplete += new EventHandler(Notifications_PreRenderComplete);
        }

        void Notifications_PreRenderComplete(object sender, EventArgs e)
        {
            NotificationControl.MessageAreRead(Session["Member"].ToString());
        }

        //void Notifications_LoadComplete(object sender, EventArgs e)
        //{
          
        //}
        
    }
}